import React, { PureComponent } from 'react'
import LoadingGif from '@/assets/images/loading.gif'
import './style.less'
export default class Loading extends PureComponent {
  render() {
    const { size = 'lg', className = '', fixedHeight } = this.props
    return (
      <div
        className={`${fixedHeight ? 'fixedLoaingWrapper' : 'commonLoadingWrapper'}
        ${size || ''} ${className}`}>
        <img src={LoadingGif} alt="" />
        {size === 'lg' ? <p>Loading...</p> : ''}
      </div>
    )
  }
}
